//
//  NSData+YKOCExection.h
//  YKOCExection
//
//  Created by linghit on 2021/11/11.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSData (YKOCExection)

/// data-->md5字符串
- (NSString *)md5Hash;

/// data-->sha1字符串
- (NSString *)sha1Hash;

/// AES256加密
/// @param value 被加密字符串
/// @param aesKey aesKey
- (nullable NSData *)AES256_encrypt:(NSString *)value  forKey:(NSString*)aesKey;


/// AES256解密
/// @param value 被解密字符串
/// @param aesKey aesKey
- (nullable NSData *)AES256_decrypt:(NSString *)value  forKey:(NSString*)aesKey;

@end

NS_ASSUME_NONNULL_END
